package com.guoyw.seata.dubbo.web;

import com.guoyw.seata.dubbo.account.AccountConfig;
import com.guoyw.seata.dubbo.order.OrderConfig;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
@EnableDubbo(scanBasePackages = {"com.guoyw.seata.dubbo.account","com.guoyw.seata.dubbo.order"})
@Import({
  AccountConfig.class,
  OrderConfig.class
})
public class WebApplication{
  
  public static void main(String[] args){
    SpringApplication.run(WebApplication.class, args);
  }
  
}
